//
//  Combo.m
//  Project 5
//
//  Created by Nguyen Tan Loc on 7/10/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "Combo.h"

@implementation Combo

static Combo *m_Instance = nil;

+(Combo *) shareCombo
{
    if (m_Instance == nil)
        m_Instance = [[Combo alloc] init];
    return m_Instance;
}

-(id) init
{
    if (self = [super init])
    {
        
    }
    
    return self;
}

-(void) setListComboInfo:(NSArray *)listComboInfo
{
    mListComboInfo = [listComboInfo retain];
    mCurrentCombo = 0; // reset combo
    
    for (int i = 0; i < mListComboInfo.count; i++)
    {
        CCLOG(@"%d", [[mListComboInfo objectAtIndex:i] intValue]);
    }
}

-(void) removeData
{
    [mListComboInfo release];
}

-(void) increaseCombo
{
    mCurrentCombo++;
}

-(void) missCombo
{
    mCurrentCombo = 0;
}

@end
